package com.ayou.type;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @description: 类型处理器
 * @author: ayouman
 * @date: 2024/7/1 18:42
 */
public interface TypeHandler<T> {
    void setParameter(PreparedStatement ps, Integer index, T value) throws SQLException;

    T getResult(ResultSet rs, String columnName) throws SQLException;
}
